package com.recruit.screen.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;

@Configuration
@EnableKnife4j
public class Knife4jConfig {

    @Bean
    public OpenAPI knife4jAPI(){

        Contact contact = new Contact()
                .name("金钱豹")
                .email("2710859363@qq.com");


        return new OpenAPI()
                .info(new Info()
                        .title("数聘慧显可视化")
                        .contact(contact)
                        .description("数聘慧显接口管理系统，api接口采用REST ful风格")
                        .version(RecruitConfig.getVersion()));
    }
}
